<%--
    Document   : view fragment for notification
    Created on : 4/29/2014
    Author     : Anton Strack
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="csd" tagdir="/WEB-INF/tags" %>
<article id="${bean.id}" class="panel">
    <div class="panel-heading"><h3 class="panel-title">${bean.getDerivedValue("NotificationTypeName")}</h3></div>
    <div class="panel-body">
        <p>The ${bean.getTemplate().getDerivedValue('SubjectResourceTypeName')} <a href="/Site?action=view&resource=${fn:toLowerCase(bean.getTemplate().getDerivedValue('SubjectResourceTypeName'))}&id=${bean.resourceId}">${bean.resourceName}</a> was ${bean.getTemplate().getDerivedValue('ActionName')} By: ${bean.getDerivedValue('CreatedByName')} on <csd:displayTimestamp timestamp="${bean.notificationDate}"></csd:displayTimestamp></p>
        <p><a href="${req.contextPath}?action=delete&resource=notification&id=${bean.id}">Delete Notification</a></p>
    </div>
</article>

